package org.jeecg.modules.nc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 物料分类表
 * @Author: qixin-boot
 * @Date:   2021-07-06
 * @Version: V1.0
 */
@Data
@TableName("nc_marbasclass")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="nc_marbasclass对象", description="物料分类表")
public class NcMarbasclass implements Serializable {

	/**物料分类主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "物料分类主键")
    private String sid;
	/**分类名称*/
	@Excel(name = "分类名称", width = 15)
    @ApiModelProperty(value = "分类名称")
    private String name;
	/**分类编码*/
	@Excel(name = "分类编码", width = 15)
    @ApiModelProperty(value = "分类编码")
    private String code;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**上级分类*/
    @ApiModelProperty(value = "上级分类")
    private String pkParent;
    @Excel(name = "上级分类", width = 15)
    @ApiModelProperty(value = "上级分类")
    transient
    private String pkParentName;


    @ApiModelProperty(value = "子集")
    transient
    private List<?> children;

}
